fixes exhauative pattern matching in ast and bytecode