Base_DB: Move get_record_field_values() to libglom.

This lets us use it in tests.