Guard initial values in entity.attr.

But do it without making lots of objects each call.