add some fixes from comments at http://www.class.pm/projects/jquery/classycompare/