fixing some bugs in change resolution and regularize z spacing filters that were leading to array allocation issues