Make UUID primary keys work

I'm using Rails 4 with UUID primary keys (postgres), which breaks some of the "hand crafted" taggable queries.  UUIDs need to be handled as strings.  I've put together a quick patch that simply puts single quotes around the ID values, which works and doesn't break integer primary keys.  There's probably a more elegant solution to this though.