[scala] Scala best way of turning a Collection into a Map-by-key?