implement INDArray clone()
Scalar equals
Add scalar hashcode
hashCode and tests for scalars