Some filterengine clean up

Where there were huge chunks of if-statements where every single one don't need to be tested (only one will be correct) changed to switch block or "else if". 

This should make the filterengine a tad more readable and most probably a little more effecient because it doesn't have to do all the tests every time.