Fake llGetPermissionsKey().
Comment out possible left over cruft.
Fix llListSort().  That's what you get for mixing three different languages that don't agree an array origin.