Remove stoi and switch to function that supports enough bits

Summary

When testing some of the standalone cmd line tools with higher ids, the tools started failing. This was because std::stoi only supports 32 bit numbers, and as the cmd line options are parsed as strings, this would fail when using the function.

Steps to reproduce

Use cta-restore-deleted-files and cta-change-storage-class with higher than 32 bit numbers.

What is the current bug behaviour?

Overflow