ucimap: fix boolean interpretation, add range checks for int values (thx, henning)