Use value object type and properties for events in the on property
Move flag function evaluating code to HSSFlagFunction
Fix warnings about incomplete classes
Remove garbage function