[dml-compiler] Add INDEXED slot option

  * For each INDEXED slot, generate a static method to get an object by that slot