Add support for nargs in loaders