Ported clip_end(), length(), is_perimeter(), is_fill(), is_bridge() to XS