Fixed merged history items not having the correct id

Had to go through pains to reconcile the identifier of the history item by going from actentry up to the parent object and using WorkflowObjectInfo to divine the id field of the parent.