Fixed bug not creating element type class from string name (on PHP 5.3.10)