Add build iteration to `*.metadata.json`

This information is important in various package publishing activities.