SI-5833 Fixes tail-of-Nil problem in RefinedType#normalizeImpl
SI-5833 Fixes tail-of-Nil problem in RefinedType#normalizeImpl

RefinedType#normalizeImpl was checking to see if the flattened list of
parents had an empty tail then pulling the head if so. But if the list
was empty then boom. This fix makes it check if the whole list has
length 1 instead. Empty lists will flow through to the rest the logic
which has no problems with Nil.

lrytz/scala,shimib/scala,martijnhoekstra/scala,shimib/scala,scala/scala,martijnhoekstra/scala,jvican/scala,felixmulder/scala,felixmulder/scala,scala/scala,felixmulder/scala,slothspot/scala,felixmulder/scala,jvican/scala,shimib/scala,lrytz/scala,jvican/scala,scala/scala,felixmulder/scala,jvican/scala,shimib/scala,slothspot/scala,martijnhoekstra/scala,jvican/scala,lrytz/scala,felixmulder/scala,jvican/scala,jvican/scala,slothspot/scala,slothspot/scala,martijnhoekstra/scala,martijnhoekstra/scala,slothspot/scala,lrytz/scala,shimib/scala,slothspot/scala,slothspot/scala,scala/scala,shimib/scala,lrytz/scala,felixmulder/scala,lrytz/scala,scala/scala,martijnhoekstra/scala,scala/scala