Bolean attributes serialization

Added a way to decide what attributes are `boolean`