fixes for lazy loading of types when using rendering parameters and making them work with interfaces.