small masked array performance enhancement

remove unnecessary typecast and seterr operations
Sorry for not catching it before this was pulled, but `nomask` is defined in this module, so `np.ma.` round-trip is redundant: the line above should be just

```
if m is not nomask:
```