Add registerTypeAdapter to GsonCodec