Fix some warnings
Kill soon-to-be useless hunk-shift foreach skeleton
Walk deltas and patches without using foreach