Handle dodgy plugins augmenting Array prototype with functions