add test for shell code not optimized in -profiling builds
fix very large doubles; fixes #2392