Added containers for fields assertions.

It's pretty useful to be able to specify the container element for fields, especially when you have a lot of sam-named stuff in different containers.

This was actually implemented in elementExists(), but somehow not in other functions. I've added this support in other places with this change.