nested tempplates fixes,
nested structures in "C" mode parsing
added utility function "appendSibling" (like "appendChild")