Better error message for adjusting a query term's type when it cannot be.