MAINT: Corrected masked array comparison and extended its use.
Merge pull request #1079 from cpelley/masked_array_comp

Extending masked array comparison