fw: Rewrite PRM back to callback. Fonund bug in icuGetPeriodX().

Issue #23.