Script insertafter improvements

Hey, my first pull request for some additional functionality in the Script class, that I needed as I was experimenting around with implementing a CodeAction "Extract into Parameter".  Please let me know if you see any problems.