handle function calls under case statements; fixes #3