make parameterizable type constraint Perl version dependent (mst suggestion)