Added indexOf(VEnum enum) formula function that returns enum.getIndex()