Check for special statics at beginning of loop. Avoid traversing thread static or context static variables as roots. Fixes case #555954.
Fix output of version information. Use git directly rather than build environment variables.