Save type name as `this.name` as in online docs and to avoid conflict with `index.type()`