fix "metric" property conversion to appropriate protobuf type