Add ai_performance module

Also fix the array library, add core_fnc_toNumber to the conversion
library, and fix a misnomer in the building_menu module settings.