Using StorageIndexType for loop assigning initial permutation. Adding assert for index overflow.
Using StorageIndexType for loop assigning initial permutation. Adding assert for index overflow.

--HG--
extra : transplant_source : %97%3F%BE%B3%EDrc%C2.%EDU%5B%9Bm%1D%D2%13%E7%EEa

mjbshaw/Eigen,mjbshaw/Eigen,madlib/eigen_backup,mjbshaw/Eigen,madlib/eigen_backup,madlib/eigen_backup,rotorliu/eigen,rotorliu/eigen,rotorliu/eigen,madlib/eigen_backup,mjbshaw/Eigen,rotorliu/eigen