Fix out-of-bounds exception in GCodeBuffer and add unit test for it.
Remove duplicate newline-on-last-line check in GCodeBuffer.
Remove outdated comment in MakerbotDriver.