data argument is optional in device.Global
Globals compare equal when having the same dim and data
Maps compare equal if defined on the same iterset, toset, arity, data