code: function CEntity(indexes, properties, states) {
    CArray.call(this, indexes, properties);
    this.states = {} || states;
    this.uid = 0;
  }
docs: when declared in a State, the state will add itself and the declared name for this CArray as properties to the CEntity object.