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

Related to issue #828 and some others.
Yes, you are. `arr` in that snippet isn't a Numpy array, it's a `numba.types.Array` object. `arr.dtype` is therefore a Numba type (an instance of `numba.types.Type`).