this is a part of the class implementation. In this commit classes and instances type were completely cleaned and prepared for a new implementation. Native class registering mechanism were fully refactored and made it much simpler.