Fixed the ISerializer setup for Diagnostics

Fixes #1177