utils/ofzip: Make use of generics