How to get single elements out of an encrypted vector?

Please see this thread How can we access an element of an encrypted vector?.