Add AIMultiGrid::is_common_uuid

This function returns non-NULL when the UUID passed to it is a common
UUID that is the same on all grids. It is extremely fast.
The code was generated with gperf.