allow instances to be flushed from state; add unit tests; simplify type
collections
Merge pull request #2 from modethirteen/master

allow instances to be flushed from state; add unit tests; simplify type collections