Merge pull request #245 from stoewer/master

looks fine for me!
EntityWithMetadata: setter checks only root fix

This should fixes #248