Masking updates/improvements

Updated interactions with spectral-cube objects.
Also added in set operators and a custom function wrapper.