fails:String#scan with pattern and block restores $~ after leaving the block
