Patch to handle dimensions without corresponding variables

Netcdf allows dimensions to be defined without the corresponding
variable. If this is the case the handler will create a dummy variable
which is simply a range of numbers.