Query: Remove excess serialization

This is a performance optimization for predicates (map queries).

When the key or value already is in 'object' form, it still is being serialized to retrieve an attribute because with portable data, an object doesn't need to be deserialized to retrieve its content.

This branch removes the excess serialization.