Fixed bug in Element.build when supplying class name as object member