Bugfixes for moving DimsSetter to Program class