made GccxmlBasDescriber._visit_template() a little more robust