Tax-free bonds rally like midcap funds