allow int and float values as default dimension values
use last dimension value as default