Support of metaparameter variables in variable_scope check

Metaparams are automatically defined as variables in the scope of defined types and classes, so add support for them to the `variable_scope` check so they don't throw false positives.

Closes #310