Added prefixThis method to PluginBase.

Also added tests for this & TypeBase constructor
Made site that TypeBase constructor can’t be overridden with ‘final’