making operator<< for var safe for uninitialized values
adding test for model in issue #91