Add functions for report/parse unknown map flags and script objects + sepate function for create npc

This allow light version for handling custom map flags in plugins.
Also allow parse custom objects in plugins from script files.