text value should be taken into account for label dims caching; fixes #454