libs/core: improve luci.util.imatch() to not create temporary strings when iterating...