implemented adjoin and substitute for the template of synTemplate.
adjoining/substituting trees get copied first