Provide slots for serialise encode and decode functions in RTTI.

The types are probably wrong. Facility to bind user defined
encode/decode functions.