Add metadata for reading compiled code
Add some more scripting metadata
Preserve the order of script exports