Rewrote bitmask code to not heavily rely on postponed execution, factoring out
definitions 'embed' and 'dispense' that can now be used with 'create..does>'.
Added testcase to check equivalence of old and new code.