Support `.locals(locals)`

[closes #20]