Generating tableswitches instead of comparisons

I had to hardcode everything against the will of the Scala compiler: see
https://issues.scala-lang.org/browse/SI-6955 and
https://issues.scala-lang.org/browse/SI-6956
for more details