Adding more useful optimizely comparison logic

I tried to find a jinja method for converting the config value for comparison, but I couldn't find anything better than this.  I'm sure someone will correct me here.