South Korea's main opposition leader attends court over arrest warrant