Move the GlobalValue revert logic into separate routines. Enhance it to support reverting of the static init functions, too.
Move the GlobalValue revert logic into separate routines. Enhance it to support reverting of the static init functions, too.

marsupial/cling,marsupial/cling,perovic/cling,marsupial/cling,perovic/cling,root-mirror/cling,karies/cling,karies/cling,karies/cling,marsupial/cling,root-mirror/cling,perovic/cling,marsupial/cling,karies/cling,root-mirror/cling,karies/cling,perovic/cling,root-mirror/cling,karies/cling,marsupial/cling,root-mirror/cling,perovic/cling,root-mirror/cling