Factor out more common test code

AnnotationConfig is always the same in TestParameterAnnotations.
Add support for constructor parameter annotations

Constructor parameter annotations can be mixed-in, but cannot be
inherited. This is intentional based on the behaviour of constructor
method annotations.