Fix #17724 by having occAnal preserve used bindings.
Fix #17724 (closed) by having occAnal preserve used bindings.
It sometimes happened that occAnal would remove bindings as dead code by relying on bindings to be in dependency order. The fix was contributed by SPJ.