Fixed bool cast to int when setting attributes
Merge pull request #89 from tvollstaedt/master

Boolean attributes get casted to int