Expansion/improvement of compile time transforming for model rules in the DSL.

 +review REVIEW-5177