Run dfn after inclusions and transformations

This should fix #383.