Fix a bug, add faster construction

@ticoann please review. This faster method is needed for CRAB3 and the bug I turned up has been there a long time.
No and it better matches the signature from two commits ago. Chris requested this for the CMSSW version. Thanks for spotting.