Correct `NSecTypeMask::contains_type` and add `from_types` builder