First implemantion of output of moments rom getshape(). Untested, even for compilation.