Do not call IsDefinedClass before defining in_range_defines, out_of_range_define

These are not expressions, but classes.
Do not use IsDefinedClass for attribute environment_host

This is not an expression, but a class reference.
Remove namespace parameter to IsDefinedClass