Pass tolerance to ReplayGroup

The tolerance instead of the squared tolerance must be passed to the ReplayGroup constructor.

Fixes #2324.