Moved the values method to the Record class

This reduces code duplication.

Note that the values method remains in two classes (DoseTracking and
ControlPoint), because these have some special handling of a couple of
attributes.