Add NDArray trait implementation & tests
elim direct use of FloatArray
elim direct use of IntArray