Bugfixes after unit testing Dexie.Syncable

Ran all Dexie tests with Dexie.Syncable applied and a dummy
ISyncProtocol that logs everything sent to it. Resolved bugs that
occurred.