[Sieve] Index Extension - Fix :index and :last token order bug

Now :index and :last can now be specified in any order.