rustpkg: Use the new `for` protocol
Fix deriving(IterBytes) to use the new for-loop protocol
test: Use the new `for` protocol