Updated AbstractDrawElement, fixed onVar equation value types