Prefer real pointer types over void * when there is no ambiguity.

refs #974