Makes `set` a first class directive (so can be used outside of an `include` directive); also adds a function for more consistent error reporting during stencil rendering.