I've just made a fresh install of 3.5 and updated to 3.5.1, and either versions give me a dashboard error: submenus and help panels just won't work.
I followed this suggestion and enabled
define('SCRIPT_DEBUG', true); in wp-config.php. The errors stoped.
I'm now wondering what could have caused this in a new install.