Layout resource should return proper types.