helper function to look up a serialized field value
Factor out set_default_values
Fix typespec.