Update GraphNavigator.php

extract resolve type to method, update docblocks
this is broken because it does not accept ``null`` values for ``$type``