The original panel should clear all the templating variables and look like it did before repeat was selected. Fixes #3831. Also cleans up after a row repeat is removed