Fixed a problem with dimensions that have no associated variables
Provided a fix for dimensions that do not have associated variables.
Bug fix where slicing was not precise in apply
Can now replace variables that were not in original for apply