Properly extend Array and Function data types.