Make Period + CompoundPeriod communatative. Partially fixes #9214