Fix gh-2210, Join.grad crash with first input dtype being *int*

Use `zeros_like(dtype=floatX)` for discrete dtypes, `zeros_like` for continuous ones.