Fixes property defaultValue not being set if property is null (closes #104)

Added a test for this and fixed another one.
Fixes bug detected on previous commit about drivers using wrong escape methods (#104)