Use the frame 'type' in wfFormatStackFrame, like MWExceptionHandler::prettyPrintTrace