Fix to class name for library categorization and output port display 

This fixes 2 issues:
1. Output port does not display class name for constructor belonging to class defined in global scope (no namespace): http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-4507
2. Imported methods in global class not categorized under class names in library: http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-4506