Added support for JPA queries returning a tuple of results.