Equal update.

Improved equal. Now Compare function compares not only the function code, but also for the content in the container.