Fixing uidgid types checks.

Signed-off-by: Denis Semakin <d.semakin@samsung.com>