Added generic TLSerializer<T>.