nitdoc: abstract some functions to Apropdef type

Abstract some functions to use inherited them for AMethPropdef and
ATypePropdef

Signed-off-by: Stefan Lage <lagestfan@gmail.com>