Make obj_from_primitive() preserve version information

When we hydrate an object from a remote client, we need to know
the version and not pretend like it's just the current version.

Related-Bug: #1258256
Change-Id: I68bbfa18addfb7e51efc10a757135e338302a787
Merge "Make obj_from_primitive() preserve version information"