Checkbox support

This adds checkbox support for dom.value, and cleans up the addon quantity determination code to coerce falsey values to zero

cc @cbarton