code: public static Array toArray(Argument arg) {
  	ArrayImpl trg = new ArrayImpl();
  	int[] keys = arg.intKeys();
  	for (int i = 0; i < keys.length; i++) {
  	    trg.setEL(keys[i], arg.get(keys[i], null));
  	}
  	return trg;
      }
docs: converts a argument scope to a regular array
  
  @param arg argument scope to convert
  @return resulting array