[checkmk-commits] Removed a few more global variables. Slightly improved types.