private static int type(LuaCallFrame callFrame, int nArguments) {
        luaAssert(nArguments >= 1, "Not enough arguments");
        Object o = callFrame.get(0);
        callFrame.push(type(o));
        return 1;
    }
@param callFrame
@param n
@param type must be "string" or "number" or one of the other built in types. Note that this parameter must be interned!
It's not valid to call it with new String("number").  Use null if you don't care which type or expect
more than one type for this argument.
@param function name of the function that calls this. Only for pretty exceptions.
@return variable with index n on the stack, returned as type "type".
main/src/main/java/cgeo/geocaching/wherigo/kahlua/stdlib/BaseLib.java