Add some more expansions

Better parameter-expansion (still incomplete though)
Arithmetic expansion
Do expansions in HERE-doc when appropriate