Checks that 'arguments' are referenced only in function body.