Never store a singletonized string in dedup hash.
Fix strDup to use real class, as in MRI.
Add missing boundscheck.