[scala] Change ScalaAggregateOperator to use TypeSerializer

Before it was using TypeSerializerFactory. This led to problems with the
user code class loader and is not necessary.
Could we do explicit conversion from TypeSerializer to TupleSerializerBase instead of hard casting?