flow.record.fieldtypes.boolean does not identify itself as a boolean value, which results in incorrect JSON encoding in the JSON packer (and by proxy the Elastic adapter).
>>> from flow.record.fieldtypes import boolean
>>> foo = boolean(1)
>>> isinstance(foo, bool)
False
>>> isinstance(foo, int)
True
Perhaps this can be fixed with a metaclass __instancecheck__ method?