Ported the object lib.
Little change to CrocRegisterFunc.