Each statement now tracks a statement that it was a reply to.
Updated tests for new output type.