api_dump: add $raw_dump options