Fixes Issue 648 - Expand template mixins in ddoc.