Improve checking and documentation for %ifctx