new Variable impl. with nested effect tracking added
fixed small bug in new variable impl. and added test with multiple vars sharing the same reference