Make withParameterOfType take a const void*.

Some compilers (gcc 4.8.1 at least) do not do conversion from
const void* to void*, and we can therefor not mock out functions
that takes const parameters. The inverse conversion is however
always done.