Optional Type in Header, Script Template for Type Select Options

A few minor type related enhancements.

These help support the javascript work I'm playing with.