jim.c: minor code cleanups in [switch]