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

Related to issue #828 and some others.
Is this significantly faster than array.flat? The latter was recently optimized...