fixed issue with MY_Model _safe_where when functions are used in keys of arrays