fix our usage of `checked()`

fix our usage of `checked()` to properly check the value for both checkbox and radio fields

props @greatislander, @PhilippSchreiber and @seamusleahy
fixes #30 and fixes #38