Make Period + CompoundPeriod communatative. Partially fixes #9214

No, I think I see what you're referring to here. Yeah, this isn't quite right.