Fixed error in lub with already-instantiated parametric types, fixes #399