Fix "Access to undeclared static property: lang\Primitive::$INTEGER"
Also rewrite variables in catch statements
Use fully qualified name for Console class
Fix assertSubclass() usage
QA: WS
Fix expected outcome to work for XP 5.x and XP 6.x
Fix create() statements to wor in XP 6
Construct CatchNode correctly, its variable member is a string