Fix/1363

Fixes to collectd codec, particularly `NaN` handling which was omitted.

The only other surprise fix here is on line 83.  Not having `type_instance` here was causing events to not have the `type_instance` when they were supposed to.  Other handling prevents its superfluous persistence in cases where it does not need to be there.  This was discovered when isolating `NaN` events.