updated equality test
make sure shapes match in array equality