core: add --debug-memleaks option for guppy