Fix double dereferencing error in deserializer of user classes