Make pivoting HouseholderQR compatible with custom scalar types