Fix container var access
Fixing the directive so that collections specs including . and [] are acceptable