3.0 associated dot notation

Implements https://github.com/cakephp/cakephp/issues/3620
Does $pointer need to be reset at the end of the foreach loop?