Added logic to autodiscover element type from class name when $element property wasn't set.
Added logic to autodiscover element type from class name when $element
property wasn't set.

Signed-off-by: Michael 'Tekkla' Zorn <50f195679bf77bf0955b9c2832e55e1d0c47d29c@tekkla.de>
tekkla/TekFW,tekkla/TekFW