rebalance: Less cloning and maybe clearer code.
rebalance: Less cloning and maybe clearer code.

jimmywarting/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,jimmywarting/Dexie.js