Validate with type before calling setter function
Merge branch 'serializable-setter' into jokull

* serializable-setter:
  Validate with type before calling setter function