Defer script datums to be serialized last

This ensures that any datums created by the script datum will be
populated before the script datum is created (and tries to make them).