Added new boolean attributes.
Added typecasting for SQL insertion and update.
Fixed test breaks.
Merge remote-tracking branch 'upstream/master'
Fixes #653: use boolean type to indicate boolean attributes.
Merge remote-tracking branch 'upstream/master'