model/bug: model reference map not correctly referenced.
templater/bug: not handling model references as expected.