Make Period + CompoundPeriod communatative. Partially fixes #9214

Is this right?