[BUGFIX] inval() -> (int) regressions in ternaries