Prevent write of undefined as string on compile
Add methods .templateStream() and .compileStream() to use streams
Adjust test cases