temporary: use weak reference for context in TypesmartTermFactory