shorten_unambiguous_ref(): add strict mode