Serializer: make Serializer abstract class and add `hashCode()` and `equals()` methods for primitive arrays. See #402
Remove Hasher, use Serializer to check value equality in maps