Correct rcode check
The majority of evaluation conditions just return false when an attribute reference can't be resolved. An exception is where the RHS is an attribute reference and LHS is not. Fix this, so the behaviour is consistent. #379