Scala: Pattern to add missing methods to already existing classes.