Classify newtype structs S(T) as immediates if T is an immediate
Fix dereference of temporary immediate newtype structs
auto merge of #7543 : sanxiyn/rust/newtype-immediates, r=catamorphism

Fix #6612. Rebase of #6725. Fixed an additional bug and added a test.