Fixes an issue with phase2Timeout on proposer state

When an instance times out on phase 2, if it is closed or delivered
 it should have its payload retried. This patch adds this functionality.
Merge pull request #1880 from digitalstain/phase2timeoutRetryFix

Fixes an issue with phase2Timeout on proposer state