Make precompile() use the merged options
Fix precompiling templates that reference other templates