fix #379 make Integral a subtype of Scalar