Use std::swap (defined in ` since C++11) instead of tl_swap`.
Do not crash (by using tl_assert) when encountering invalid bezier curve values. Those values could come from a server map that should not crash clients.
Use dbg_assert directly instead of tl_assert in plain_range.