handle the case where perl6 -Mfoo switches to a slang

In the common case where this is not the case it is just an istype check and
the call to LANG.