Fixes #305.

Implemented automatic property type conversion on node loading and saving to the database.
Merge pull request #309 from andreasronge/type-convertor

Fixes #305. Implemented automatic property type conversion