scala constructor: reader for val and reader/writer for var