use specific model when testing update
fix substitution bug in repr_type

Also, move repr_type into util.py since it doesn't have any particular
dependencies on being where it was.
test Model.update with an integer