Fix handling of default value

Make sure default value is properly escaped,
properly handle default value of BIT fields.