semantic: Correctly handle passing ref variables to functions.
test: Add exps 9 to test passing refs around.