Ensure the working directory is clean in the release task.
Clear input for uniqueSort after sorting to release objects. Close gh-225.