Adds some safety mechanisms for working with scheme/schemeset visibility