compare_optmatch function

Compares the equality of optmatch objects, ignoring attributes and group names.