3rd param to iterator is 1-based iteration number
Merge pull request #328 from psalaets/issue-294

Fix for #294
I've found a critical bug in `_bufferToString` for `localStorage`. Input buffer for `Uint16Array` should have even length!!
fix(localStorageDriver): fix odd length buffer serialization
refactor: abstract the serialization code to a separate file