Gson internals refactor

rids the last of the core compiler warnings, and backfills missing test coverage on gson parsing.

cc @nacx