handlebars: fix definition creation (floating ClassCastException in spacebars)