dynamic cleanup: wrap local variable in switch with {}
dynamic cleanup: wrap local variable in switch with {}

* improves code consistency
* allows to add new case at the end

mologie/capnproto,mrdomino/capnproto,mrdomino/capnproto,pjulien/capnproto,hntrmrrs/capnproto,jparyani/capnproto,hntrmrrs/capnproto,mologie/capnproto,mologie/capnproto,pjulien/capnproto,pjulien/capnproto,mrdomino/capnproto,hntrmrrs/capnproto,jparyani/capnproto,jparyani/capnproto