GROOVY-6915: Add an option to inherit the model when using layouts