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