Fix boolean support for xml schema definitions

Previously trying to upgrade or a table definition that defined a default value for boolean fields would lead to an error because the default value was passed to the SQL server as a string instead of a boolean.

Also fixes errors when fields are defined with the <primary/> elemement set.

These two errors made it impossible to update the news app

cc @bartv2 @DeepDiver1975 @VicDeo