generateLoaderKey now handles providers that are objects, not strings; an additional test