Fixed two bugs in AST compilation (#5830):
- Correctly parse operators .* and ->*
- Support empty branch in ternary expression (a?:c)
replace some references to NDEBUG with CHECK_INTERNAL.