Add test case for nested types, e.g. Option[List[String]]