I love this script. I've wrote a set of RevGen Security scripts a few months ago and have been using them to "save" security of dev/test databases pre-refresh. Must have put 20 hours into those, but I am going to toss them aside and start using yours.
Thanks for sharing!