Join opt. Remove empty constant as inputs and merge MakeVector inputs.

do the join change for gh-2328
update comment/docstring
Add check that the downsample factor are ints.
Merge pull request #2330 from nouiz/join_opt

Join opt. Remove empty constant as inputs and merge MakeVector inputs.