MODE-2297 Improved handling of warnings involving pseudocolumns, and added test to verify functionality

Using a pseudocolumn in a select used to result in a warning, but that is no longer the case. Also cleaned up the places that used pseudocolumns  by encapsulating all pseudocolumn info into a single class.  

Also added a test case that shows the functionality does work for a query that was reported as a problem.