Add QueryInterface logging.

For each call of QueryInterface, to get a better idea of which object is which.