data-binding: test for default no-arg constructor before generating optional initialization code