Slightly improve templatesanalyzer/unitTables.py