Allow masking a numpy mask

Fixes #376