3D factories are also templated
3D factories are also templated (fixup around Kspace)