Refinements: Add unroll threshold and always unroll to power of 2.