Implement Firefox workaround for "TypeError: anonymous method called on incompatible string"

My theory: It seems that Firefox optimizes sometimes too hard and therefore 'value' in 'ccallFunc/toC' is some kind of unassigned. Then calling 'value.length' in the 'toC' throws an exception. With the 'typeof value' check we can workaround that problem.