added dimension dialog.

also handled length attribute of dimension tag in NcML.