Relocated typeFromFullname to IndexType

adjusted tests accordingly