Added test for Issue #4564.
Updated release.rst.
Fixes check in _can_fast_union.