[dml-compiler] Add INDEXED and UNIQUE slot options

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