Get a declared type (either classes or enums) by its full name

Support to get a declared type by its full name has been added.

For example:

$global.getType("someNamespace.MyClass");