[analyzer] Teach trackNullOrUndef to look through ternary operators

Allows the suppression visitors trigger more often.
[analyzer] Refactor checks in IDC visitor for consistency and speed