make all INDArray classes serializable