Use size_t for indicies

32-bit builds complain about ulong.