Fix bug in way function types are serialized to the Code Model.