Made restriction of retention_period values configurable.

By default the retention_period is restricted by the parents values. This restriction is now configurable in the registry (`IRetentionPeriodRegister.is_restricted`).

So the restriction is disabled by default.

@lukasgraf please take a look.