v.20.3Bug Fix

Fixed bug in batched calculations of ternary logical operations

Fixed up a bug in batched calculations of ternary logical OPs on multiple arguments (more than 10). #8718 (Alexander Kazakov)