Fix DocumentationComment related issues.

Support for case marker[1]==marker[2] will be introduced by issue 2645.

DocumentationComment will only accept position instead of range in __init__ will be introduced by issue 2646.

Edited by Saurav Singh