fix NPEs
a function typed variant can be regarded as a Map

even if optimizers convert it to another type like string
sync flags in "make test-optimized" with jsx --release
fix xt/optimize-bench/*
now `make test` is a combination of `make test-debug` and `make test-release`