New NDArray implementation

Cleaned & simplified, pass tests w/o errors or warnings.