Make splitAt conform to Haskell 98/2010 (fixes #1182).