libsmartcols: add sanity/safety checks and asserts

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>