Fix bug in query serialization for DBQuery.all, was trying to serialize ...

...each passed in object as Collection<T> instead of T