Added tuple type test and improved compare method.
Fixing a bug with the nvl methods.