BATCH-2024: extend javadocs to cover type parameters

As described in the JIRA ticket, parameterized methods can be
confusing for users, so it is good to include some hints how to
use them in the javadocs.  StepBuilder.chunk() is the focus here.