actually check for `@:genericBuild` when encountering a Rest parameter (see #3089)