more threadsafety for eventmanager + speed boost for PrimitiveUtil.get