Stub implementation of extend method.
Added OnExtended method and final checks.
Added custom reference type class.
Finished extend method implementation.
Added extend to the meta type class.
Added body to extend method.
Fixed permissions for final set method.