refactor Exception::toArrayRecursive().