added double equality tests

This fixes #673 by adding an equality helper function for vectors and comparing using the DOUBLE_EQ macro