Serialize numpy arrays using msgpack