pub fn parse_dimension(value: &Value, name: &str) -> Result<usize, String>
Convert an argument into a dimension index (1-based) if possible.