buildProduction: Removed require.js-related workarounds that aren't necessary as of assetgraph@dc26103d.
Updated test so it doesn't depend on UglifyJS picking a particular mangled variable name.
Added orphaned require.js test.
Made buildProduction test immune to UglifyJs randomness.
buildProduction: Run cloneForEachLocale earlier so that constructs like require(['lib_' + LOCALEID], ...) are supported. Currently seems to break transforms.bundleRequireJs in some cases, so this is a WIP.