Rewrite IStrategoList hash function from recursive to iterative to prevent stack overflows on big lists.