Fix const in apply_on_tuple
Fixed bug out of domain for mesh with positive and negative matsubara frequencies