Add docs and tests for equality for Mask.