Progress on stateful model rewrite.
Fixed Set* Segfaults, finished open-close model of operation.