various fixes (mostly wal queue related) for logical replication
Updates to reflect what was committed in 9.4