make generating recursive unloading modules configurable (and non-default)

A unit test is still missing, I'll issue an additional PR for that later.