Changed vector initialization to a function

The macro was hacky to some extent. Also now in many places ASSERT_EQ is
replaced by isEqual with an appropriate signature so it can accept the
array directly.