Update utility.lua

*Fix table_contains for search values of table
*Add safety check in table_equals