Bug fix regarding loading directive classes

Previously there would be an issue if a single element defined two
directives as inspection of further elements would occur after the
first directive was initialised.