major speedups and bug fixes for constructing TensorBasis instances; all AbstractBasis subtypes are now immutable