worked on util.misc:
worked on util.misc:

 - pulled repeated code out of `isdictsimilar` and `islistsimilar`

 - fixed bug in similarity checking code:
   different types could sometimes cause an exception to be raised

 - superficial change in numeric check: `isinstance` can take tuples

jjhelmus/nmrglue,kaustubhmote/nmrglue,kaustubhmote/nmrglue,atomman/nmrglue,atomman/nmrglue,jjhelmus/nmrglue