Support for clang 3.5

fix recognition of basic types in templates in script which generates the Serialization.cc files. See also #5467.