Change dependency loading to be synchronous.

This way the self-registering of the various legend types happens
in time so that even IE8 has a chance of knowing which types of
legends are supported.

This test now passes in Internet Explorer 8.