BC fixes for habtm. Closes #3545.

Worked together on this with @dereuromark, continuing from #1094

Patch 1 of 2.

It fixes an issue with Habtm select boxes, eg: `User Habtm Group`.
`$this->Form->input('Group')` do not display joined records as selected.