Make subexpressions play nice with context

I believe I've made subexpressions work with context. It's related with #80.