class library: findAllRegexp now returns an array of indices, as documented. This fixes #1108