Implemented @language handling in context processing with tests. Fixed a def order problem that broke tests in prior commit.