Generation from template seems to be working. Some testing done, not extensive. No loss of performance for IPersistentVector (direct) instantiation. About 2.5x slower when instantiated with wrapped IPersistentVector, but we can have multiple different scalar implementations with wrappers.