Expose Dimension type (baseType and size) and fix a warning.