Add datatype for boolean field with the properties:
PR for 4.8-maintenance: #1037
PR for master: #1036