Don't initialize threshold before rules on delayed detect. Bug #999.
Reset both sides of the de_state on rule reload. Bug #998.