NH: Fixed error performing saves when foreign keys are defined on a base class.