compare with scalar (cn > 1)
Merge pull request #2552 from ilya-lavrenov:tapi_compare