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.
Merge pull request #2126 from jeffska/master

Scala trait/conversions for wrapping Param[T] to avoid instanceOf problems in ParamCollector