when resolving width use case insensitive expression. fixes #1065