Sharing typedefs between templates and scripts

Related post: Curious, and new feature idea: "Watching" a type has unexpected result