Add NewFunction method and improve function fast binding.