add 'trigger' and 'boolean' mode to 'shared_value' Udef

and make sure switching modes doesn't generate an error by enabling
Boolean:asFloat