Bit surprising gentype_free hasn't the right type.