Fix 32-bit errors

Component type mapping changed from ulong to size_t for 32-bit
compatibility with arrays.
Merge branch 'hotfix/1.0.6'