expr: move op_type/value_type_to_string functions to ast