Been there, done that – sometimes you can look straight at the error and not see it because you know that you typed that bit right…
Your 2 experimental darktable modules are very interesting - I’ve been going though some of my more ‘difficult’ files and in most cases I can get excellent results just using exposure, fix input profile (logarithmic) and colour balance. I don’t need multiple tone curves and highlights/shadows any more!