Sh: Add support for HereDocument

Adds support for shell (POSIX) HereDocuments (fixing our only test for a known bug) (d646dea), and also another fix for quoted string resembling a function after an identifier (4e276d4) I found in the process.