fix sql contains and in expression visitors to allow for value types

Based on my [question at SO](http://stackoverflow.com/questions/17691194/ormlite-where-contains-fails). I basically copied the fix from the recent commit for sqlite (9f0b0e8cfa4410da5d288bf754ba6538805cbec0).