ClassDefinitionBuilder: made constructor parameters final for #998
Test for #998: capturing constructor parameters
Updated .src now that constructor parameters are final for #998