Compare bool fields by value of backing field rather than property.

When creating new projects the property value will be null, which means
the bool/string properties are never serialised.  This fixes #459