Scalafying AtomicReferences from Java - attempt at improving Scala's standard library