tmppool: Allow passing NULL to tmppool_put

Most deallocation routines accept NULL. Make tmppool_put follow that
convention.
cumufreq: Accept --reverse

It may be useful to list the least frequently occuring items first, so
accept --reverse for that.