There are better algorithms for bootstrap intervals that you perhaps should look into. Better in the sense of quality, not speed.
Google e.g. "interval BCa"
Google e.g. "interval BCa"
Also - I gladly accept diffs if you are motivated. It is not clear to me that BCa and other variants provide substantial improvement for most practical situations. I would invite criticism here.
Tldr - thanks for the feedback