GI-1301 Added tree memory debugging