EntityWithMetadata: setter checks only root fix

This fixes #248