fixed template array building in class parser