Implement register_udata and remove no-op gc functions.