Fix Formula class to_hash.