fixed a bug with contests where candidates and referenda were not being properly counted.
Merge branch 'dev' of https://github.com/votinginfoproject/Metis into dev