Replace CTransaction constructor with MemoryStream based implementation.