Unfold range as loop parameter if unrolling failed

Otherwise we end up with very long literals where a simple for loop is
much more efficient.
Merge pull request #316 from serge-sans-paille/range-unfolding

Unfold range as loop parameter if unrolling failed