hs-plugins runtime error with GHC 6.6: index out of range