Yeah, sorry, hadn't submitted a pull request in concert with a ticket before... will unify them in the future. Alright, will do.

The bigger problem with the tuple is that it generated () in the resulting matlab script, where [] wat needed. () made matlab crash... so I'm not sure if or how write_which was ever used or tested. Whatever - not important. I'll push this change shortly.

There's another pull request in there from me that'll need to be considered once this goes through - if you use write which, you have to take account of that when listing your outputs.