The attached patch fixes this; note that the code has only ever worked because the wrong constant was used in the type check. I'm not sure now what all these other functions are good for.
The attached patch fixes this; note that the code has only ever worked because the wrong constant was used in the type check. I'm not sure now what all these other functions are good for.