Scala utility code that samskivert uses in his projects