Type instablility

Thanks for pointing this out! I think you are right. This function is already type stable.