Test and fix for #272
Merge pull request #273 from victor-homyakov/string-replace-patch

Fix a String#replace bug (when shimmed, in Firefox)

Fixes #272.