[#60589752] zip function complete with units

we now have the zip function with full coverage in unit tests.
added sample code, as well as slightly refactored some
confusing conditional logic into boolean functions