.cxd dimension detection fixes

See files in simplepci/jcb/.