NDArray optimisation and cloning
compact NDArray clones