Added scala trait and wrappers that implement Param[T] to avoid problems with instanceOf in ParamCollector, and added implicit
conversions from Param[T] to the new wrappers.