Correct handling of boolean field types in utils.py