[scala] Move the implicit defs from ScalaComponent to the scala package object