fixes in user object serialization