Added support for comparing complex structures