Warn on duplicate scripts

- a warning if two scripts have the same name
- mark a few previously discarded errors
- fix a screwup I made while patching a flag error. Now fully patched
rather than half-patched.