Related to the previous one. patch one avoids the segfault if for some reason (i.e. bug) the partials array fills. patch two fixes the #ifdef DEBUGPARTIALS build.