Fix for #2033

Adds call to intrev16ifbe to ensure ZIPLIST_LENGTH is compared correctly