Updated handling of literal types