Fixed bug in EntityDeserializer

It no longer relies on the ObjectReader for its entity reference.