MAINT: Corrected masked array comparison and extended its use.
Minor alterations
Changes reflecting review
Unittest adjustment
Merge pull request #1074 from cpelley/updated_mask_comparison

MAINT: Corrected masked array comparison and extended its use.