Allow passing models directly in refs

It allows using cross-connection references. Would solve this: http://stackoverflow.com/questions/15680210/populate-from-two-different-databases-in-mongoose

Probably not the right way to code it but you get the point.