factorize code, and add add Serializer::convert(const T&,char*) and serializer::conver(const char*, T&)