Fixed json serializer to report an error when a serialized object has a getter returning an array of simple types.