add userdata support to checkClass/isClass