Better messaging for 'Field.to_representation'. Closes #2271.