BUG: fixing dtype regression for [hv]stack (issue #3111)