Changed context inside recursive definitions to not record the recursive expression.
Fixed inefficiency in "bash".