Add support for plain old function return types in class detection

Now both
    simplexml_parse_file()->
and
    $xml = simplexml_parse_file();
    $xml->
format supported with user defined functions as well