Fix missing backward compatibility for some Array natives.

This adds compatibility for old compiled plugins which use some Array natives and don't have new parameters.