ugly bugfix for parsing literals inside envelope structures.