value-pairs: Silence a few compiler warnings

Avoid signed-unsigned comparsions, and silence a few other warnings too.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>