fix java and parrot backends for lit lengths too