Fix VS2012 compile issue
Dock: Save settings whenever they have been changed
Dock: Use references instead of pointers