Simplify reshaping of array in remap_3d (#1420)
Simplify reshaping of array in remap_3d (#1420)

* properly cascade type, not hardwire type
* simplify reshaping

mkeilman/sirepo,radiasoft/sirepo,mrakitin/sirepo,mrakitin/sirepo,mkeilman/sirepo,mkeilman/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo,mkeilman/sirepo,radiasoft/sirepo,mrakitin/sirepo,mrakitin/sirepo