Optimized #global* primitives and added #hasGlobal:

- moved implementation to separate file

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Added lowered version of #not to True and False

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Added missing #hasGlobal: installation

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Sync loop count propagation with OMOP branch

Signed-off-by: Stefan Marr <git@stefan-marr.de>