Ensure that lvalue references can be passed to any() and all()