Fixed column exclude and include handling in to_dict making it work now

Column inclusion and exclusion was not working properly if for exmaple a list of sa objects wa passed into to_dict. This should fix it.