Replaced hard coded int types with Index types preventing implicit integer conversions.
Replaced hard coded int types with Index types preventing implicit integer conversions.

pthulhu/eigen,pthulhu/eigen,pthulhu/eigen,pthulhu/eigen,pthulhu/eigen