Expanded version of rmatch_calls which should work well for most functions, but not particularly well for S3 methods such as print.