ported objmodel.cpp to use rewriter2 exclusively, deprecates rewriter1
removed rewriter1