Extend D14003, D14004, D14005 and D14006 with handling of global variables:
GlobalOpt scans static constructors to mark allocated 'writeonce' memory prior to evaluating the constructors.
This patch also includes new test cases, which are essentially adapted from the test case in D14006 for "fully global" and "partially global" test cases.
This patch is a break-down of (corrected) D13606.
CallSite CS(CurInst);
if (!CS) continue;