I'm not sure if something changed in Factorio or if I just didn't notice the problem when you first added support for expensive recipes, but the 'enabled' 'energy_required' and 'result_count' parameters need to be specified under the 'normal' and 'expensive' part of the recipe rather than at the root or they don't work.
I made a patch (diff -Naur) to fix it here.
https://pastebin.com/WGfVDZp1