fix: missing occurs check at metavariable types

closes #4405
3 files changed