#398 Enable autodetection of templates for JPAQueryFactory