Allow {max,max_abs,min}_value to return states.

These functions should not attempt to convert multistate strings to
floats as this makes the assumption that state names are all numeric.
The state name should be returned and the appropriate numeric value
should be determined if required afterwards by looking it up in the
state mapping.