Fix base env types that are too conservative

These accessors and removers required the target value
to have the same type variable as the collection, but
that's more conservative and less useful than Any.