Fixing `array.mean()` by returning `undefined` from `[].mean()`, updated unit test