Fix data-hidetype="undefined" appearing

* Checkboxes must be reset after defining the event handlers
* .prop doesn't seem to trigger, so use .trigger('click') instead
* I dislike initializing hideType with keys (another dependency)