Solve problems when exposing global. Fix also problems when extending templates and components.
Fix problems with tabarray and minItems
Fix conflict