Move RegisterObject() from Object constructor to Actor one.
This means for now objects other than actors aren't registered,
but at least actors get a global enum