add comparable support to iterator bases