Add PrepareSerializer<T>() method to the TLRig.