Pull request code review cleanup.

* Fix taking defaults for block rule.
* Emit errors on marshal and unmarshal.