>Bam! Jo tries to be clever about types and knows null, booleans, strings and numbers.
I'm very skeptical of this. If I put x=001979 in as a value I dont think I want you trying to guess if that's supposed to be an integer or a string.
This sounds like the Norway Problem waiting to happen.