Varieties of algebras with pseudoinvolution and polynomial growth