Add tests for Model#reference.
Fix confusing model classes.
Release.