1.0.13 broken for Mongoid, items is not an array

The `items` that get passed in here is a Mongoid criteria.  So, doing a collect! on it does not update it and was causing the data to just be a to_json of the objects, breaking autocomplete.  This change is a lot more flexible for different types of objects getting passed in.