Fix boolization, dtype calculations
mend
Fix boolization in prescence of casts
Hopefully fix boolization for real this time