Improved error reporting when setting properties.

Set now panics on those problems as well, instead of returning an error.