testgen: add dimension struct