See some suggestions in https://github.com/ranocha/BSeries.jl/pull/117#pullrequestreview-1475004102. In particular, there are still some type instabilities left