Run check on bases before resolving PTM
When resolving a PTM using algebra.ptm_convert_basis, first run a quick check on the in and out bases. If the bases are equal, do not run the einsum, since no conversion is needed.
This can greate improve runtime in particular cases.