Merge pull request #3731 from 9rnsr/fix13074

Issue 13074 - Old opCmp requirement for AA keys should be detected
Merge pull request #3744 from 9rnsr/2.066

Cherry-picking commits from master to 2.066 branch (for beta3)