Changes to a much nicer and extensible implementation of fusion_static_dispatch.