Fix Trac #4371: matching of view patterns