fix recognition of basic types in templates

 in script which generates the Serialization.cc files.
Fixes a bug reported by @Dr15Jones (Thanks!)