Add specs for gsub with named captures

Related to #2126
Fix using backreferences in String#gsub

Fixes #2126