fix stream not being closed in module constructor
Reuse structure of externals and OTP using proxies in the model tree
small fix
fix externals content provider to handle proxies