void createIfMissing(String key, SelTypes type) { // won't create array
    if (symtab.containsKey(key)) {
      return;
    } else if (inputTab != null && inputTab.containsKey(key)) {
      Object inputVal = inputTab.get(key);
      SelType newVal = box(inputVal);
      symtab.put(key, newVal);
    } else {
      symtab.put(key, type.newSelTypeObj());
    }
  }
@Test
  public void createIfMissing() {
    state.resetWithInput(params, null);
    state.createIfMissing("foo", SelTypes.STRING);
    SelType res = state.get("foo");
    assertEquals("STRING: bar", res.type() + ": " + res);
    state.createIfMissing("fuu", SelTypes.STRING);
    res = state.get("fuu");
    assertEquals("STRING: null", res.type() + ": " + res);
  }