len() returns int which was overflowed by MaxUint32 on 32bit
Merge pull request #4 from temoto/fix-32bit-build

Fix 32bit build. len() in 32-bit environment returns a 32-bit integer which overflows MaxUint32. Need explicit conversion to int64.