Changed ComTree to keep a pointer inside its internal array. This is necessary for use with garbage collectors.