GRAILS-10410: Make it possible to pass model to layout template in g:applyLayout