Minor type fixes found by Dialyzer

... as part of Riak CS development.