reducer.cc: extra sanity checks