[MERGE] refactor pp_iter
Refactor the code in this hot function. Chiefly, the if/else chain
was replaced with a single switch statment, and various bits of code were
tidied up, duplicate code eliminated, local vars added to avoid repeated
evaluation of expressions etc; along with big whitespace changes to fix up
indentation etc afterwards.
With these changes, these trivial benchamarks run about 7% faster:
$x++ for @a; # @a has 30_000 elements
$x++ for 1..30_000;
while this one stayed about the same, presumably due to the relatively
costly overhead of sv_inc():
$x++ for 'aaa' .. 'zzz';