Simplify and correct test ArrayReader.
Have a separate testing regex for JavaScript engines that retain match location.