switch int and uint32_t to size_t in loops -- closes #61