Remove array serializer duplication