variable autodiscover failing with improper dimension tuple length #307

Converted appropriate KeyErrors into DimensionNotFound exceptions
for variable autodiscovery.