add proper values for checkboxes.

previously checkboxes would be "true" no matter what.
fix checks and uses the "checked" property of the input checkbox node for the value.