Fixing problems with boolean fields.

If the boolean field was required and the value was false - it would be
overridden by the default value.

If the document had a boolean field with a default value - then a false value
for that field would be overridden by the default value when it was
instantiated.
Fix Flake8 errors.