Normalize and allow captures in Regex.scan/3, closes #1526