Bug fix in hibernate repository type conversions