Fixed references to custom types uint and ulong. Substituted with std::size_t