scala: enum support
updated to scala 2.11.0