Cache PrimitiveBaseShape, Color and other object types as strings. Eliminate most hashing for now