New Element API methods: assertIsChecked, assertValue

`assertIsChecked()` will throw an exception if the form element is not
checked.

`assertValue(str)` will throw an exception if the form element's value
is not equal to the passed `str`.