Serialization Optimization

Merges  scan implementation by @metadave with my raw byte array table representation.  It also adds unit tests for a variety of utility operations and ensures that indexes are copied on update.