Added support for typed queries/updates, including package-level definition of implicit conversions.