Export clear_npctype_cache as both lua/perl general functions.