Fix regex.match: return empty iterator for empty strings
Add extra spec for buffer config chaining