Cleanup of Active Doc issue and added fields to GeomElem

There were a few things wrong with the Active Document concept, and I
added visibility and GraphicStyleId to the GeomElement class