Declare for loop variables consistently in GetIntraPredictorTest

Previously, the same variable 'i' was sometimes declared within a for
loop and sometimes outside of the loop, all within the same function.

This avoids spurious warnings in MSVC 2005.
Merge pull request #670 from mstorsjo/consistent-for-loop-declaration

Declare for loop variables consistently in GetIntraPredictorTest