fix for references, DAL tests pass also on MSSQL now
Merge pull request #270 from niphlod/fix/dal_reference

fix for references, DAL tests pass also on MSSQL now