Dump EmittedFunctionDetails to sysimage

This implements serialization and deserialization of line number information. Ref #5354.