misc: fix signedness warnings, refs #193