BibRecord: Cleanup `record_get_field_values()`

* Halve the mccabe complexity of `record_get_field_values()`, add
  assertions and fix docstring.

* Correct calls from `bibupload` to pass strings of correct size to
  `record_get_field_values()`.