Some work on the way parameters are generated. Also added a few helper properties to ScriptProperty.
Implemented a Type property for ScriptProperties, and started with the code cleanup this now enables.