Implemented deserializer for arrays and objects with references.