Use reflection to dump nested case classes