Fix broken atomicModifyIORef.
Add test case for broken JSStrings.
Fix hacky JSString conversion functions. Fixes #100.