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>
Merge pull request #128 from algernon/h/value-pairs/warning-fixes

value-pairs: Silence a few compiler warnings