hdl.ast: fix shape calculation for *.