Shoftim 5768 - Tamim Tihyeh Im Hashem Elokecha

Why does the Torah use the singular to say you shall be Tamim? How is this pasuk connected to the previous ones that prohibit idolatrous practices?