Contents
Sets lookups {id:index in _data}.
Should only be called in constructor as this modifies state.