#117 fix wrongValueTypeThrowsException to make it check the value type and not the key type