BUG: handle numpy.ndarray in json serializer