Closes #1182
Changes recorder so that PauseElement are inserted before TagElements
Merge pull request #1265 from Skeebl/master

Close #1182