More collision tests for Mask

* This fixes the issue that Mask with inheritance and collision checks
  in two ways:
    * The @__check is in a function to be called from inherited classes
    * Pass the correct mask to the callback