Clean up logic in input/output collectors.
Clean up serializable type lookup and support non-JsonSerializable types.
Use parent as serializable type.
Fix serializer test issues.