make gen_defaults type-aware, add test
fix actions for add-as-type buttons, and display types