fixed aliased ndarray serialization