Turn some "should not happen" comments to UnexpectedError().