Removed obsolete code
fixed so that collections and sequences are not transferred as arrays when fetching an object.