loader: replace int/1/0 with bool/true/false