Implement AstPtr != operator.