Add pidigits benchmark and some functions to make it work

The benchmark runs but crashes due to OOM, I think because we
never release the underlying long memory (due to lack of finalizers)