Add getAttributes() to ScriptEntry.
Update workings of repeat and foreach

- Now injected in the current queue
- queue clear/stop will now end everything, not just the current
iteration
- definitions are preserved
- warning: May error if we start injecting entries to the end of a
queue... if that is added, a small bit of recording needs to be done
(Size needs to be changed to first index of the ending entry and stuff
like that. Will worry about when it becomes an issue)