common: Fix functions serializing enum classes

Add missing inline keyword in functions serializing enum classes.

Change-Id: Id75f537f046250f3794bd0ea6a2797ada2ee0168