Inlines all the fields used during upgrade and tests

W/o inline, changing the fields will cause any old update code that
uses them to break without warning. Added a test forupgrading all
the way from v50 to the current version and fixed some bugs that
showed up as a result of the test.

Change-Id: I3673c784bfbe38d65d2a04b7e5aaeaf8cdcb21fa
2 files changed