[WIP} Added a WIP array.mean() implementation.

Related to issue #828 and some others.
Hmm... Why not write out the classes using some base class for the functionality? I think that would be more readable, albeit less fancy.