Add functions for report/parse unknown map flags and script objects.

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