Make sure that boolean and non-boolean config values are coerced correctly

#368