spark: add missing isscalar import
spark: test numerical truncation