fix for rangefunc being unused for int & int array.

also cast strlen to an int to avoid overflow.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54297 954f8c5b-7b00-dc11-b283-0030488c597c