Fix Issue 10915 - std.typecons.Nullable throws in writeln() if it's null

https://issues.dlang.org/show_bug.cgi?id=10915
Also, avoid UFCS in generic code. It's an open door to hijack: If `T` has a `to` member function, then you won't call what you want to call.