Fix #1829 "Alert for constraint shows instead of alert for required"

- Form Builder inserts children `xf:constraint` elements when there are custom alerts
- `annotate.xpl` migrates existing forms
- test
Fix #1830 "Required validation must win over other constraints"

- prioritize required constraints