Move copying of global initializers below the cloning of functions.