Revert "register custom (de)serialization"

This reverts commit 5d84e485d0065b60433d49ff95b31e8f694093dd.