use real classes for issue tests so local types can be defined
skip TCast(_, None) when checking for parameter default values (closes #2607)