Change the size type of containers from uint to size_t

Change the size type of containers and related classes from ```uint``` to ```size_t```.
It aims to get them consistent with their backing stores and improve affinity to 64-bit environments.