Replace some unnecessary dynamic_casts with static_casts.
Add option to disable unifying nudging preprocessing step.