Fixed bug #81096: Inconsistent range inferece for variables passed by reference Detect references before range inference and exclude them from range inference.