Bugfix: enabling raft layers generated support for the whole model. Includes regression test. #1375