A dramatic late victory over Japan sparks celebrations but disguises some significant concerns for Wales.