Fixed minor bug in temporary terminal

In some cases child expression was held by non-const reference.
Optionally report container copies
Avoid making vector copies in permutations