added support for comparing arrays