Add serialization trait to Operation and Histogram.

All operations (and arguments to operations) must be serializable
for remote execution.  While case classes are automatically serializable,
some classes were being created that did not properly inherit Serializable.