Fixed sets for templates.

This also makes it so that the correct value shows in the form when
editing a set.

Closes #431
Merge pull request #443 from OregonDigital/feature/SetTemplates

Fixed sets for templates.