cpp: Add ostream operators for import result