Improve valid() for clipperz, fixes issue #457