improved error reporting: attach error marker to variables with incorrect unit definitions
reset inferred unit once a new analysis run starts