simplify the shit out of array comparison
add tests for object element comparison