Reference counting for variable loads/stores implemented (pos_variables2 test working again)