Moved object enum declarations to start of object loader