Fixed wrapping in circular buffer and completed frame parsing, including test (test_canusb).