Minor fixes in deepcompare() and deepclone()

Added infinite recursion detection to builtin deepcompare().

Bumped deepclone() and deepcompare() recursion limits from
100 to 1000 levels.