Fixed affiliations deserialization

* memory allocator in hash deserializer
* default affiliations list limit