Credit stack overflow for type_of_value and convert_num functions