Issue 3093 - Add better documentation for Object.factory and add an example

https://issues.dlang.org/show_bug.cgi?id=3093