[PATCH 3/3] debugobjects: Use hlist_cut_number() to optimize performance and improve readability