Adding a getPrototypeOf shim
Optimization for array comparison
Check function lengths as well for equality.