Externalize transaction statistics in a single element

  * Changes the externalization of a value-type so that it can be used in
    backends which do not support multiple externalization elements yet.
[backend-infinispan-code-generator] Generate cast to AbstractDomainObject when needed

  * Addresses an issue discussed in #128.