Fix for issue #10 "Wrong arrays comprasion"

Add spec and fix code for wrong arrays comprasion.