store all expressions as references
Revert "store all expressions as references"

This reverts commit 6426492444557f5297383570a878ba9b84a7d32c.