A fix for #13

These changes fix #13 as well as make the testsuite and the debug flag compatible with ghc 7.8.2. 

Unfortunately, we're still having problems with Accelerate, which may possibly be related to hashtables. I need to narrow it down further. If the issue is in fact with hashtables, I'll report it as a separate issue.