added Array.isArray to list of patched functions