Make ScaffoldListener list all associations.

Reinitialization of an array in ScaffoldListener::_associations causes only one Association of each type to be returned: $type can assume the same value several times.

This commit fixes the bug and one associated Unittest. Note that Comment (core.comment)
has two belongsTo associations: User and Article.