remove gcc-4.8.1 warnings. fix crash in summarize (exceed vector bounds during printout)