Helper function to get the size of compressed paths including dictionary

dictionary_size(x, maxdepth = 1, compressed = NULL)