I failed to respect the 4 byte field alignment when laying out the fields of ScriptFunction.