Improved detection of the order of banded and packed matrices (no more need to add a great deal of .trait_of templates)