Fix conversion of var_dim to numpy
Add test in case of too many dimensions to empty constructor