BUG Revert some changes to ManyManyList

This fix reverts some changes made in the ORM rewrite of 3.2 to ManyManyList, as well as fixes some issue raised as the result of some behavioural changes in testing. Notes will follow on the individual line items.
This makes the test pass by making it ignore whitespace in SQL for the sake of comparison.