locals was only being called on the request level if something on the same namespace had not been previously exposed globally - and even then, it was being called before the value itself had been saved. I moved the locals call to after the values have been transformed/saved, and made sure it is called every time for request-level calls to expose.
The only way around this would be to delay calling locals until right before the template is rendered. I couldn't see any obvious way of doing that.
added test for request-level exposure
modified request level exposure test to check more than one statement
fixed request-level exposure. closes #26