small masked array performance enhancement

remove unnecessary typecast and seterr operations
the masked operations are optimized for sparse masks, not as well as m.any() but enough to not be relevant here