general iterable implementation
sliceCount function
INDArray slicing and reconstruction tests
allow toDouble to handle scalars