Enable noImplicitAny for test code.

Requried stripping private definitions out of d.ts prior to running grunt:test, so
some re-org of the gruntfile was required.

Close #199.