Scalings of energy confinement and density limit in stellarator/heliotron devices