How to write options lists with drush vset?
You can use drush.

drush vget foo --pipe

The --pipe option will format the output as php code.

As far as using that with drush vset, I would recommend against that and instead set via an update hook, or directly in settings.php.