-Fixed an issue with restricted sorts nested inside constructs.