More fixes for Scala code generation.

HibernateDomainExporter can now outputs proper classOf[] expressions for Scala, if we hack it to use ScalaCodeWriter. The output Scala code is still not right though.