wrong constructor invoked (thanks to untyped null values)