Test resurrecting memory pool transactions during chain re-org

Builds on #5316.