cmd/compile/internal/rangefunc: handle aliased type in yield func

DO NOT REVIEW
DO NOT SUBMIT