Fix open namespaces for type extensions

+ rest of the logic has been moved to Core
+ update docs