Fix use of details::permute by using native sizeof