ofp-util: Add type-safe functions for serializing actions.