[#1247] Add test which shows the problem with concrete classes that pass in the type based on a generic