Added convenience functions in_array() and equals().