Fix #117; Make sure to prepare begin batch statements.

See discussion @ #117. I haven't tested this yet, so can someone ensure the tests pass?