Avoid allocation in FloatRange construction

Fixes #6373