Update pastebin example to avoid new `gen` reserved keyword; couple of typo fixes (#2975)