cleaned up likely_type_from_value