GEOT-4229 fix join of more than two tables

Signed-off-by: r0bb3n <r0bb3n@gmx.de>
GEOT-4429, updating tests for mysql and sql server
Merge branch 'master' of git://github.com/geotools/geotools