Test: remove dependence on BATCH_SIZE===10K

Explicitly require 20K tuples for the third test.
UserDefinedAggregator: add serialization and test it