test on smaller dataset

old loop commented to allow comparisons, only temporary
equality for rmr datasets
rewrite of reduce loop
pass key, not list thereof
don't forget to cast to keyval
formatting
drop 0-length keyvals
deal with 0-length
redundant check
formatting
spell functions right please
c.keyval doesn't work well with NULL args
this is done, drop comment
corner case of the empty input