Fix a bug in Parameters that occurred when an arithmetic expression referenced a parameter that contains another arithmetic expression, and added a test to cover it.