kernel/params: fix handling of signed integer types