issue #31: Convert from/to ternary - 2ternary hints