Narrow the return types of a few DIBuilder utility functions.