virsh: Add 'to_file' to snapshot_dumpxml func

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>