Added support for boolean fields.

This was not noticed earlier. Oops.