arg-summarize bugs

I found two bugs in the arg-summarize and related code that should be fixed soon