fixed a bug with uniqueIdRule where the array flatten caused a stack overflow.
Merge branch 'dev' of https://github.com/votinginfoproject/Metis into dev