Add better error messages when fetching wrongly typed fields.
doco
Inline a test helper method, whitespace.
FieldType::getBytes preserves null, letting us to simplify some tests.
Refactor PutTest a touch.

Extract a helper, use some constants to make things more legible.

shouldIgnoreNullFields() has also been weakened, to only verify that the null field is absent in output.