Ability to flatten out embedded structs

First draft. sqlite tests pass. Added tests to document behavior of getFieldmap(). Added tests for embedded structs.