Fix my bug in [rename], where I forgot to add [x] to the set [used].

Fix another bug in [Action.rename], where a cascade of [let/in] was
used instead of a single [let/and], causing a capture.
Introduce a better renaming convention, using a suffix _inlined['0'-'9']+
instead of accumulating "'" suffixes.