Handle LITERALs specially in `merge`

This is more breakage from the `ptype` stuff.

Over the shoulder from @mlucy.