Fix bug in vectorisation of case expressions