make +logical convert to integer
Merge branch '21-misc-cleanup' into 22-more-scalars