Refactored parameters and overloads for spjshelpers.ensureNonSPLibraryLoaded()