Test of domain transformation primitives.
Minor improvement in CollectDomain task.

byte array is shared among instances of MR task, since each
is doing only write.