Provide failing type when encoding a GValue

Change-Id: Id77bc6fe2c89000f461348d471420dec27c1a28b