Fix where/in query.
Pass conn to serializer attribute functions.

This allows us to assign current user to the conn in a plug and access
in the serializer.