improve Array serializer