Fixed saving/loading of queries and dumps
Implemented cooperative multi-inheritance
Fixed type conversions and file encoding while saving preferences and connections