Mappings: Update the type masks when emptying the mapping. Fixes testsuite failure where two empty mappings weren't equal() due to having non-overlapping type masks.