Make Period + CompoundPeriod communatative. Partially fixes #9214

Ok, fixed in b688e8ff477e0075981459cd06b654154f6fadd2