doctests: fix problem with decorators

    supersedes #7399
    
    with this commit all decorated functions/methods containing doctests,
    where the used decorator is != ``property`` are executed now and not
    silently skipped.