Fix const in apply_on_tuple