Make it possible to print a field name

Add a function that returns the name of a field.