Backport table scanner and reflection fixes to 0.6.x

Backport of https://github.com/playframework/play-slick/pull/165 and https://github.com/playframework/play-slick/pull/173