Added view type getter and ensured element render events would get the proper type

cs: one level too deep + missing spaces around `=>`