Add valFn to indexBy, too