Haskell bindings: Implement bindtests.