Fixed stubs

 - Refactored (split generate into simple methods)
 - Fixed dump not public properties
 - Fixed extending/implementing for classes in global namespace
 - Fixed class types (interface/class)