doctests: fix problem with decorators

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