Replicator support

The previous Replicator support commit didn't grab and move Replicators properly.

The problem was that `.closest()` was grabbing the first parent with the `input-block` class. It should've grabbed the last ancestor with the class instead.