Add System property 'checkMonitorValidityOnEachUpdate'

Some refactorings in Globals
Let check of monitor validity on each update be optional in StatefulMonitor