* haskell: Properly handle invalid memory access * haskell: source cleanup * haskell: added support for batch reg read/write