add missing casts that are required by some C compilers
redex: fix for `render-language` with `extend-language-show-union` as #t

Merging base languages didn't add non-terminals that are included only
in the extension.

Also, add `extend-language-show-extended-order` for showing productions in
the order of an extended language instead of the original language.