Introduce formula_to_string() which converts a formula in list format to a
better readable string.