make sure we have same types for identical comparison - fix #35