universal: convert_to_ref_type
some fixes for msvc2013