Fix reading from multiple inputs in the same expression.
Optimizer fixes.
Add ReadTest.