[Parser] Null-ref exception fix/Micro-opt with Names/NameHashes at TemplateParameters