allow Rest type parameter for @:genericBuild classes (closes #3089)