Don't endian-swap type twice, don't load # of types wrongly