Fixed bug when serializing templated parameter that does not have parameter set