Test for #1930: boxing bug with inline if expressions

Was fixed in #1925
Fix for #1924: Error using type of local class within method of generic class

Use reified is for local types with type params in the containers
Use fast-fail only if the local type is raw
Test for #1924: Error using type of local class within method of generic class