Ensure lazy loading and correct namespace of the layout class when using configuration's "layout" DSL