Add test for referring to nested types. am: 61db854465 am: a30e27f697
am: c799177c3e

Change-Id: I16e6fa76a3c810df40e93a06ccac799f7c8207ad