REST transactions: improved result serialisation.

o Improve unit testing of ExecutionResultSerializer.
o Redesign of ExecutionResultSerializer.