Function testParameterizedTypeclassLaws

Test parameterized type typeclass laws for the given instances of some datatype.