Added serialization helper functions.
Utility functions for serializing function prototypes.