fixing the classForName method so it will recognise primitives