Fix #13596; #13722: .replaceWith consistency. Close gh-1216.
Fixes #13779. Remove nodes in document order (uses for loop matching empty()).
Loop cleanup

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Fix #13483. Let slideDown() work after stop(). Close gh-1205.