improve declarative scripting performance, fix getCtor issue, add performance tests based on DOH