Fix detection of stealth outputs and enforce return output ordering on all output checks.