Ensure that '_reference' key is used to store the reference
Merge pull request #964 from sandstrom/model-reference

Ensure that '_reference' key is used to store the reference