Improve error message for invalid literals

@tgoyne 

Addresses #752 

Previous message:
> Object type '(null)' not persisted in Realm

is now:
> Invalid value 'nil' for property 'name'
This is the line that was causing the confusing error message?