Add support for customizing basis dimension in TransformedIndexPreBasis
Since the generic transformation is intended to simply
change the indexing scheme, it still forwards the
method dimension()
to the wrapped basis. However,
this patch allows to change the dimension by
passing a fully custom transformation class.