Add detection to require-config.js, fix shims.html and ArrayGenerics to use new approach/path