Added nested loop template support and ability to register new delimiters