Support for bit fields as boolean storage. Closes #1896