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

Related to issue #828 and some others.
A detail, but I think types.intp would be sufficient... it only makes a difference on 32-bit builds of course.